<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,shrink-to-fit=no">
    <title>用户登录界面</title>
    <link th:href="@{/login/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/login/css/signin.css}" rel="stylesheet">
</head>
<body class="text-center">
<!--  用户登录form表单 -->
<form class="form-signin" action="/toMain" method="post">
    <img class="mb-4" th:src="@{/login/img/login.jpg}" width="72" height="72">
    <input type="text" class="form-control" name="username"   th:placeholder="#{login.username}" autofocus="">
    <input type="password" class="form-control" name="password"  th:placeholder="#{login.password}">

    <button class="btn btn-lg btn-primary btn-block" type="submit" th:text="#{login.button}" >登录</button>

    <a class="btn btn-sm" th:href="@{/toMain(l='zh_CN')}">中文</a>
    <a class="btn btn-sm" th:href="@{/toMain(l='en_US')}">English</a>
    <div class="mb-4 text-danger" th:text="#{login.errormsg}" th:if="${not #strings.isEmpty(msg)}">errormsg</div>

</form>

</body>
</html>
